package org.edu.modules.teacher.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ve_hr_hetong")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "教职工合同信息表", description = "教职工合同信息表")
public class VeHrHetong implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    /**
     * 老师表id
     */
//    @Excel(name = "老师表id", width = 15)
    @ApiModelProperty(value = "老师表id")
    private String teacherid;
    /**
     * 工号
     */
    @Excel(name = "工号", width = 15)
    @ApiModelProperty(value = "工号")
    private String gh;
    /**
     * 姓名
     */
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String xm;
    /**
     * 合同开始时间
     */
    @Excel(name = "合同开始时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "合同开始时间")
    private Date starttime;
    /**
     * 合同结束时间
     */
    @Excel(name = "合同结束时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "合同结束时间")
    private Date endtime;
    /**
     * 合同附件id
     */
    @Excel(name = "fileUrl", width = 15)
    @ApiModelProperty(value = "fileUrl")
    private String fileUrl;
    /**
     * 描述
     */
    @Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String content;
    /**
     * 是否为当前合同1当前2非当前
     */
    @Excel(name = "是否为当前合同1当前2非当前", width = 15)
    @ApiModelProperty(value = "是否为当前合同1当前2非当前")
    private Integer status;
    /**
     * createuserid
     */
    @Excel(name = "createuserid", width = 15)
    @ApiModelProperty(value = "createuserid")
    private String createuserid;
    /**
     * createtime
     */
    @Excel(name = "createtime", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "createtime")
    private Date createtime;
    /**
     * terminalid
     */
    @Excel(name = "terminalid", width = 15)
    @ApiModelProperty(value = "terminalid")
    private Integer terminalid;
    /**
     * createTime
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "createTime")
    private Date createTime;
}
